<%@ Page Language="C#" MasterPageFile="~/MasterPage/BaseLine.Master" AutoEventWireup="true"
  Codebehind="UploadedData.aspx.cs" Inherits="WebRobot.Pages.ListFileUploaded"
  Title="::Web Robot:Uploaded Data::" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <div class="heading">
    Search Import PDF Files
  </div>
  <div style="margin: 0 10px 0 0;">
    <span style="color: #808080">From: </span>
    <div style="margin:-20px 0 0 50px">
    <dxe:aspxdateedit id="dateFrom" runat="server" cssfilepath="~/App_Themes/Aqua/{0}/styles.css"
      csspostfix="Aqua" imagefolder="~/App_Themes/Aqua/{0}/" showshadow="False" width="130px">
      <ValidationSettings>
        <ErrorImage Height="14px" Url="~/App_Themes/Aqua/Editors/edtError.png" Width="14px" />
        <ErrorFrameStyle ImageSpacing="4px">
          <ErrorTextPaddings PaddingLeft="4px" />
        </ErrorFrameStyle>
      </ValidationSettings>
      <DropDownButton>
        <Image Height="7px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png" UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png"
          UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" UrlPressed="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png"
          Width="9px" />
      </DropDownButton>
      <CalendarProperties>
        <HeaderStyle Spacing="1px" />
        <FooterStyle Spacing="17px" />
      </CalendarProperties>
    </dxe:aspxdateedit></div>
  </div>
  <div style="margin: 10px 0 0 0">
    <span style="color: #808080">To: </span>
    <div style="margin: -20px 0 0 50px">
    <dxe:ASPxDateEdit ID="dateTo" runat="server" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
      CssPostfix="Aqua" ImageFolder="~/App_Themes/Aqua/{0}/" ShowShadow="False" Width="130px">
      <ValidationSettings>
        <ErrorImage Height="14px" Url="~/App_Themes/Aqua/Editors/edtError.png" Width="14px" />
        <ErrorFrameStyle ImageSpacing="4px">
          <ErrorTextPaddings PaddingLeft="4px" />
        </ErrorFrameStyle>
      </ValidationSettings>
      <DropDownButton>
        <Image Height="7px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png" UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png"
          UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" UrlPressed="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png"
          Width="9px" />
      </DropDownButton>
      <CalendarProperties>
        <HeaderStyle Spacing="1px" />
        <FooterStyle Spacing="17px" />
      </CalendarProperties>
    </dxe:ASPxDateEdit></div>
  </div>
  <div style="margin: 10px 0 0 0;">
    <dxe:ASPxButton ID="btnSearch" runat="server" Text="Search" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
      CssPostfix="Aqua" OnClick="btnSearch_Click" AutoPostBack="False">
    </dxe:ASPxButton>
  </div>
  
  <script language="javascript" type="text/javascript">
 
jQuery(document).ready(function(){
      jQuery('#aMenuListPDF').attr('class', 'active');
    });
  </script>
</asp:Content>
<asp:Content ID="content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div class="heading">
      List File Uploaded
  </div>
  <table>
    <tr>
      <td align="center" style="width: 825px">
        <dxwgv:ASPxGridView ID="gvFileUploaded" runat="server" AutoGenerateColumns="False"
          CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" OnPageIndexChanged="gvFileUploaded_PageIndexChanged">
          <Columns>
            <dxwgv:GridViewDataTextColumn Caption="File Name" FieldName="FileName" VisibleIndex="0">
              <CellStyle Wrap="True">
              </CellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataDateColumn Caption="Upload Date" FieldName="UploadDate" VisibleIndex="2">
            </dxwgv:GridViewDataDateColumn>
            <dxwgv:GridViewDataTextColumn Caption="Upload by" FieldName="UploadBy" VisibleIndex="3">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Id" FieldName="ID" VisibleIndex="5" Visible="False"
              Name="Id">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataImageColumn Caption="View" Name="Image" VisibleIndex="1">
              <DataItemTemplate>
                <a href="UploadedData.aspx?id=<%#Eval("Id") %>">
                  <dxe:ASPxImage ID="ASPxImage1" ImageUrl="../images/icon/pdf.png" runat="server" Width="32"
                    Height="32">
                  </dxe:ASPxImage>
                </a>
              </DataItemTemplate>
              <HeaderStyle HorizontalAlign="Center" />
              <CellStyle HorizontalAlign="Center">
              </CellStyle>
              <GroupFooterCellStyle HorizontalAlign="Center">
              </GroupFooterCellStyle>
            </dxwgv:GridViewDataImageColumn>
          </Columns>
          <Settings ShowFilterRow="True" />
          <Styles CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
          </Styles>
          <SettingsLoadingPanel Text="" />
          <Images ImageFolder="~/App_Themes/Aqua/{0}/">
            <CollapsedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvCollapsedButton.png"
              Width="15px" />
            <ExpandedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvExpandedButton.png"
              Width="15px" />
            <FilterRowButton Height="13px" Width="13px" />
            <DetailCollapsedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvDetailCollapsedButton.png"
              Width="15px" />
            <DetailExpandedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvDetailExpandedButton.png"
              Width="15px" />
            <HeaderFilter Height="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilter.png" Width="19px" />
            <HeaderActiveFilter Height="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilterActive.png"
              Width="19px" />
            <HeaderSortDown Height="5px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortDown.png"
              Width="7px" />
            <HeaderSortUp Height="5px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortUp.png" Width="7px" />
            <WindowResizer Height="13px" Url="~/App_Themes/Aqua/GridView/WindowResizer.png" Width="13px" />
          </Images>
          <StylesEditors>
            <ProgressBar Height="25px">
            </ProgressBar>
          </StylesEditors>
          <SettingsPager>
            <AllButton>
              <Image Height="19px" Width="27px" />
            </AllButton>
            <FirstPageButton>
              <Image Height="19px" Width="23px" />
            </FirstPageButton>
            <LastPageButton>
              <Image Height="19px" Width="23px" />
            </LastPageButton>
            <NextPageButton>
              <Image Height="19px" Width="19px" />
            </NextPageButton>
            <PrevPageButton>
              <Image Height="19px" Width="19px" />
            </PrevPageButton>
          </SettingsPager>
          <ImagesEditors>
            <CalendarFastNavPrevYear Height="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNPrevYear.png"
              Width="19px" />
            <CalendarFastNavNextYear Height="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNNextYear.png"
              Width="19px" />
            <DropDownEditDropDown Height="7px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png"
              Width="9px" />
            <SpinEditIncrement Height="6px" Url="~/App_Themes/Aqua/Editors/edtSpinEditIncrementImage.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditIncrementDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
              Width="7px" />
            <SpinEditDecrement Height="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditDecrementImage.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditDecrementDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
              Width="7px" />
            <SpinEditLargeIncrement Height="9px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncImage.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png" Width="7px" />
            <SpinEditLargeDecrement Height="9px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecImage.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png" Width="7px" />
          </ImagesEditors>
        </dxwgv:ASPxGridView>
      </td>
    </tr>
  </table>
    <div style="margin:10px 0 0 0"><dxwgv:ASPxGridView id="gvViewTran" runat="server" Width="825px" CssPostfix="Aqua" CssFilePath="~/App_Themes/Aqua/{0}/styles.css" OnPageIndexChanged="gvViewTran_PageIndexChanged" KeyFieldName="ID" Settings-ShowHorizontalScrollBar="true" AutoGenerateColumns="False" ClientInstanceName="gvViewTran">
          <Styles CssPostfix="Aqua" CssFilePath="~/App_Themes/Aqua/{0}/styles.css">
            <AlternatingRow Enabled="False" BackColor="LightBlue">
            </AlternatingRow>
            <SelectedRow BackColor="#E0E0E0">
            </SelectedRow>
          </Styles>
          <SettingsLoadingPanel Text=""></SettingsLoadingPanel>
          <SettingsPager PageSize="20">
            <AllButton>
              <Image Height="19px" Width="27px"></Image>
            </AllButton>
            <FirstPageButton>
              <Image Height="19px" Width="23px"></Image>
            </FirstPageButton>
            <LastPageButton>
              <Image Height="19px" Width="23px"></Image>
            </LastPageButton>
            <NextPageButton>
              <Image Height="19px" Width="19px"></Image>
            </NextPageButton>
            <PrevPageButton>
              <Image Height="19px" Width="19px"></Image>
            </PrevPageButton>
          </SettingsPager>
          <Images ImageFolder="~/App_Themes/Aqua/{0}/">
            <CollapsedButton Height="15px" Width="15px" Url="~/App_Themes/Aqua/GridView/gvCollapsedButton.png">
            </CollapsedButton>
            <ExpandedButton Height="15px" Width="15px" Url="~/App_Themes/Aqua/GridView/gvExpandedButton.png">
            </ExpandedButton>
            <DetailCollapsedButton Height="15px" Width="15px" Url="~/App_Themes/Aqua/GridView/gvDetailCollapsedButton.png">
            </DetailCollapsedButton>
            <DetailExpandedButton Height="15px" Width="15px" Url="~/App_Themes/Aqua/GridView/gvDetailExpandedButton.png">
            </DetailExpandedButton>
            <HeaderFilter Height="19px" Width="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilter.png">
            </HeaderFilter>
            <HeaderActiveFilter Height="19px" Width="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilterActive.png">
            </HeaderActiveFilter>
            <HeaderSortDown Height="5px" Width="7px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortDown.png">
            </HeaderSortDown>
            <HeaderSortUp Height="5px" Width="7px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortUp.png">
            </HeaderSortUp>
            <FilterRowButton Height="13px" Width="13px"></FilterRowButton>
            <WindowResizer Height="13px" Width="13px" Url="~/App_Themes/Aqua/GridView/WindowResizer.png">
            </WindowResizer>
          </Images>
          <Columns>
            <dxwgv:GridViewDataDateColumn FieldName="ValueDate" Name="valueDate" Caption="Value Date"
              VisibleIndex="0">
              <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
              </PropertiesDateEdit>
              <EditFormCaptionStyle HorizontalAlign="Left">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
              <FooterCellStyle HorizontalAlign="Center">
              </FooterCellStyle>
            </dxwgv:GridViewDataDateColumn>
            <dxwgv:GridViewDataDateColumn Caption="Created Date" FieldName="CreatedDate" Name="CreatedDate"
              VisibleIndex="1">
            </dxwgv:GridViewDataDateColumn>
            <dxwgv:GridViewDataTextColumn FieldName="BuyCurrency" Name="buyCCY" Caption="Buy Currency"
              VisibleIndex="2">
              <EditCellStyle HorizontalAlign="Center">
              </EditCellStyle>
              <EditFormCaptionStyle HorizontalAlign="Center">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
              <CellStyle HorizontalAlign="Center">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Center">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="BuyAmount" Name="buyAmount" Caption="Buy Amount"
              VisibleIndex="3">
              <PropertiesTextEdit DisplayFormatString="N2">
              </PropertiesTextEdit>
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="CusRate" Name="customerRate" Caption="Customer Rate"
              VisibleIndex="4">
              <PropertiesTextEdit DisplayFormatString="N2">
              </PropertiesTextEdit>
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="SellCurrency" Name="sellCurrency" Caption="Sell Currency"
              VisibleIndex="5">
              <EditCellStyle HorizontalAlign="Center">
              </EditCellStyle>
              <EditFormCaptionStyle HorizontalAlign="Center">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
              <CellStyle HorizontalAlign="Center">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Center">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="SellAmount" Name="sellAmount" Caption="Sell Amount"
              VisibleIndex="6">
              <PropertiesTextEdit DisplayFormatString="N2">
              </PropertiesTextEdit>
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="CreatedBy" Name="createdBy" Caption="Created By"
              VisibleIndex="7">
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
          </Columns>
          <Settings ShowFilterRow="True" ShowHorizontalScrollBar="True"></Settings>
          <StylesEditors>
            <ProgressBar Height="25px">
            </ProgressBar>
          </StylesEditors>
          <ImagesEditors>
            <CalendarFastNavPrevYear Height="19px" Width="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNPrevYear.png">
            </CalendarFastNavPrevYear>
            <CalendarFastNavNextYear Height="19px" Width="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNNextYear.png">
            </CalendarFastNavNextYear>
            <DropDownEditDropDown UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" Height="7px"
              Width="9px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png"></DropDownEditDropDown>
            <SpinEditIncrement UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditIncrementDisabledImage.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
              Height="6px" Width="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditIncrementImage.png">
            </SpinEditIncrement>
            <SpinEditDecrement UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditDecrementDisabledImage.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
              Height="7px" Width="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditDecrementImage.png">
            </SpinEditDecrement>
            <SpinEditLargeIncrement UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncDisabledImage.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png" Height="9px"
              Width="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncImage.png"></SpinEditLargeIncrement>
            <SpinEditLargeDecrement UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecDisabledImage.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png" Height="9px"
              Width="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecImage.png"></SpinEditLargeDecrement>
          </ImagesEditors>
        </dxwgv:ASPxGridView></div>
</asp:Content>
